
class App extends React.Component {
    constructor(props) {
        super(props);

    }


    setOption(){
        MIO.echatOption().then(option=>{
            this.chart.setOption(option);
        })
    }


    componentDidMount() {
        this.chart = echarts.init(document.getElementById('chart-ach'));
        M.chat=this.chart;
        this.chart.on('mouseover', params => {
            if (params.seriesType === 'bar') {

            }
        });

        this.chart.on('mouseout', params => {
            if (params.seriesType === 'bar') {
            }
        });

        this.setOption()


    }




    render() {

        return (
            <div>

                <div id='chart-ach' style={{ width: '100%', height: 500 }}></div>
            </div>
        )
    }


}

